#include<stdio.h>

int main()
{
    int n, m;
    char c;
    scanf("%d%c%d", &n, &c, &m);
    int a = n / 10;
    int b = m / 10;
    if ((n >= 0 && n < 12) && a == 0 && b == 0)
        printf("Only %02d:%02d.  Too early to Dang.", n, m);
    else if ((n >= 0 && n < 12) && a == 0 && b != 0)
        printf("Only %02d:%d.  Too early to Dang.", n, m);
    else if ((n >= 0 && n < 12) && a != 0 && b == 0)
        printf("Only %d:%02d.  Too early to Dang.", n, m);
    else if (n == 12 && m == 00)
        printf("Only 12:00.  Too early to Dang.");
    else
    {
        int i = n - 12;
        while (i--)
        {
            printf("Dang");
        }
        if (m > 0)
            printf("Dang");
    }

    return 0;
}